package com.zhz.mall.portal.modules.sms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhz.mall.portal.dto.HomeGoodsSaleDTO;
import com.zhz.mall.portal.modules.sms.mapper.SmsHomeCategoryMapper;
import com.zhz.mall.portal.modules.sms.model.SmsHomeCategory;
import com.zhz.mall.portal.modules.sms.service.SmsHomeCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhouhengzhe
 * @date 2023/2/4
 */
@Service
public class SmsHomeCategoryServiceImpl extends ServiceImpl<SmsHomeCategoryMapper, SmsHomeCategory> implements SmsHomeCategoryService {
    /**
     * 获取首页推荐类型及商品列表数据
     *
     * @return
     */
    @Override
    public List<HomeGoodsSaleDTO> getGoodsSale() {
        return this.baseMapper.getHomeCategoryWithProduct();
    }
}
